import Mock from 'mockjs'

const domain = '/api/'

// 模拟login接口
Mock.mock(domain + 'login', function () {
  let result = {
    code: 200,
    message: 'OK',
    data: {
      token: 'yyds2023',
    },
  }
  return result
})
Mock.mock(domain + 'getUserInfo', function () {
  let result = {
    code: 200,
    message: 'OK',
    data: {
      userId: 10000,
      nickName: '兔子先生',
    },
  }
  return result
})
Mock.mock(domain + 'test', function () {
  let result = {
    code: 200,
    message: '返回数据成功',
    data: {
    },
  }
  return result
})
